/*
package com.wzdigit.wms.wms.controller.report;

import com.wzdigit.framework.exception.RestStatusException;
import com.wzdigit.framework.model.response.ErrorEntity;
import com.wzdigit.wms.basic.client.PagerInfo;
import com.wzdigit.wms.basic.client.request.asn.other.SearchOtherInOrderRequest;
import com.wzdigit.wms.basic.client.response.asn.other.OtherInOrderInfoResponse;
import com.wzdigit.wms.basic.client.response.basic.WarehouseApiResponse;
import com.wzdigit.wms.basic.domain.dtos.report.WarehousePeakDto;
import com.wzdigit.wms.wms.constant.WmsWareConstant;
import com.wzdigit.wms.wms.domain.WarehousePeak;
import com.wzdigit.wms.wms.service.report.MaterialPeakService;
import com.wzdigit.wms.wms.service.report.WarehousePeakService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.stream.Collectors;

@RestController
@RequestMapping(value = WmsWareConstant.API_VERSION)
@Api(tags = "峰值报表")
public class PeaKController {
    private final String REQUEST_MODEL = "/peak";

    @Autowired
    WarehousePeakService warehousePeakService;

    @Autowired
    MaterialPeakService materialPeakService ;

    @ApiOperation(value = "仓库峰值报表", notes = "仓库峰值报表")
    @ApiResponses({@ApiResponse(code = 500, message = "系统出现异常", response = ErrorEntity.class)})
    @RequestMapping(value = REQUEST_MODEL + "/warehouse", method = RequestMethod.GET)
    public PagerInfo<List<WarehousePeakDto>> search(
            WarehousePeakDto input,
            HttpServletRequest servletRequest,
            HttpServletResponse servletResponse) {
        try {

            return warehousePeakService.slectPageInfo(input);
        } catch (RestStatusException e) {
            e.printStackTrace();
            servletResponse.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
            throw e;
        }
    }

}
*/
